<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('编辑客户：'.$vo['name']))}
	<div class="sub-frame gray">
		<form method='post' id="form_data" >
			<input type="hidden" name="opmode" value="edit">
			<input type="hidden" name="id" value="{$vo.id}">
			<input type="hidden" name="ajax" id="ajax" value="1">
			<div class="frame">
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="name">公司名称*：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="name" name="name" check="required" info="请输入姓名" value="{$vo.name}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="short">公司简称：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="short" name="short" value="{$vo.short}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="biz_license">证件号码：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="biz_license" name="biz_license" value="{$vo.biz_license}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="payment">付款方式：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="payment" name="payment" value="{$vo.payment}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="address">地址：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="address" name="address" value="{$vo.address}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="salesman">业务员：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="salesman" name="salesman" value="{$vo.salesman}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="contact">联系人：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="contact" name="contact" value="{$vo.contact}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="email">邮件：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="email" name="email" value="{$vo.email}" >
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="office_tel">办公电话：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="office_tel" name="office_tel" value="{$vo.office_tel}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="mobile_tel">手机：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="mobile_tel" name="mobile_tel" value="{$vo.mobile_tel}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="fax">传真：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="fax" name="fax" value="{$vo.fax}">
						</div>
					</div>
				</div>
				<div class="bit-2">
					<div class="layui-form-item">
						<label class="layui-form-label" for="im">即时聊天：</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" id="im" name="im" value="{$vo.im}">
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item col-xs-12">
						<label class="layui-form-label" for="remark" >其他：</label>
						<div class="layui-input-block" >
							<textarea class="layui-textarea" name="remark" rows="5" class="col-xs-12" >{$vo.remark}</textarea>
						</div>
					</div>
				</div>
				<div class="bit-1">
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input class="btn" type="button" value="保存" id="btn_save">
							<input  class="btn btn-cancel" type="button" value="取消" onclick="go_return_url();">
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global'], function() {
			var $ = layui.jquery;

			$("#btn_save").on('click', function() {
				send_form("form_data", "{:U('save')}", "{:U('index')}", function(ret) {
					if (ret.status) {
						layer.msg(ret.info, function() {
							location.reload(true);
						});
					} else {
						layer.msg(ret.info);
						return false;
					}
				});
			});
		});
	</script>
</block>